import React, { useState } from 'react';

import './index.less';

const OrderSkeletons = () => {
  const [state, setState] = useState(Array(4).fill(1));

  return (
    <div className="order-skeletons">
      {state.map((item, index) => (
        <div className="order-item" key={index}>
          <div className={'skeletons left'}></div>
          <div className="center">
            <div className={'skeletons title'}></div>
            <div className={'skeletons price'}></div>
            <div className={'skeletons time'}></div>
          </div>
          <div className={'skeletons pay'}></div>
        </div>
      ))}
    </div>
  );
};

export default OrderSkeletons;
